package field_method05;

import java.lang.invoke.SwitchPoint;

public class Person {

    String name;
    int age;
    String gender;//性别

    public void study(){
        System.out.println("studying");
    }

    public void showAge(){

        System.out.println("当前年纪为" + age);
    }

    public int addAge(int ageParam){
        System.out.println("增加了"+ ageParam +"岁");
        age = age + ageParam;

        return age;
    }

}
